Instant Client for Linux x86

您所在的位置:网站首页 oracle sql :1 Instant Client for Linux x86

Instant Client for Linux x86

2024-07-15 08:05| 来源: 网络整理| 查看: 265

Download the desired Instant Client RPM packages. All installations require a Basic or Basic Light RPM. Install the packages with yum. For example:

sudo yum install oracle-instantclient19.3-basic-19.3.0.0.0-1.x86_64.rpm

Note that from 19.3, by default only one version of the Instant Client RPM libraries can be installed at a time.

Prior to 19.3, if Instant Client is the only Oracle Software installed on this system then update the runtime link path, for example: sudo sh -c "echo /usr/lib/oracle/18.3/client64/lib > \ /etc/ld.so.conf.d/oracle-instantclient.conf" sudo ldconfig

For Instant Client 19.3 RPM packages, these commands are automatically run.

An alternative to using ldconfig for older versions, is to set the LD_LIBRARY_PATH environment variable in each shell prior to running applications. For example:

export LD_LIBRARY_PATH=/usr/lib/oracle/18.3/client64/lib:$LD_LIBRARY_PATH

The variable can optionally be added to configuration files such as ~/.bash_profile and to application configuration files such as /etc/sysconfig/httpd.

If you intend to co-locate optional Oracle configuration files such as tnsnames.ora, sqlnet.ora ldap.ora, or oraaccess.xml with Instant Client, put them in the network/admin subdirectory. This needs to be created for 12.2 and earlier, for example:

sudo mkdir -p /usr/lib/oracle/12.2/client64/lib/network/admin

This is the default Oracle configuration directory for applications linked with this Instant Client.

Alternatively, Oracle configuration files can be put in another, accessible directory. Then set the environment variable TNS_ADMIN to that directory name.

To use binaries from the tools package, use yum to install the package and then update your PATH environment variable, for example:

export PATH=/usr/lib/oracle/19.3/client64/bin:$PATH

Start your application.


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3